<div class="tile">
  <div class="tile-icon">
    <figure class="avatar avatar-lg">
	  <img src="{{ teacher.me.userprofile.icon.url }}" alt="...">
	</figure>
  </div>
  <div class="tile-content">
    <p class="tile-title"><a href="/accounts/profile?teacher_id={{ teacher.pk }}">{{ teacher.me.first_name }}</a></p>
    <p class="tile-subtitle">{{ teacher.me.userprofile.desc }}</p>
    <p>
      {% if teacher.me == user or school.owner == user %}
      <a href="/teacher/students?teacher_id={{ teacher.pk }}&school_id={{ school.pk }}">学生:<span class="label label-secondary">{{ teacher.students.all|length }}</span>个</a>
      {% else %}
      <a href="#" class="tooltip" data-tooltip="没有权限查看">学生:<span class="label label-secondary">{{ teacher.students.all|length }}</span>个</a>
      {% endif %}
    </p>
  </div>
</div>